connectiontest:connection_test.cpp ../comm/msg.pb.cc ../comm/mq.pb.cc
	g++ -o $@ $^ -std=c++11 -I../third-lib/include -L../third-lib/lib -lmuduo_net -lmuduo_base -lgtest -lprotobuf -lsqlite3 -g
.PHONY:run
run:
	./connectiontest
.PHONY:clean
clean:
	rm -f connectiontest

# channeltest:channel_test.cpp ../comm/msg.pb.cc ../comm/mq.pb.cc
# 	g++ -o $@ $^ -std=c++11 -I../third-lib/include -L../third-lib/lib -lmuduo_net -lmuduo_base -lgtest -lprotobuf -lsqlite3 -g
# .PHONY:run
# run:
# 	./channeltest
# .PHONY:clean
# clean:
# 	rm -f channeltest

# consumetest:consumer_test.cpp ../comm/msg.pb.cc
# 	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3 -g
# .PHONY:run
# run:
# 	./consumetest
# .PHONY:clean
# clean:
# 	rm -f consumetest

# routetest:route_test.cpp ../comm/msg.pb.cc
# 	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3 -g
# .PHONY:run
# run:
# 	./routetest
# .PHONY:clean
# clean:
# 	rm -f routetest


# virtualtest:virtual_test.cpp ../comm/msg.pb.cc
# 	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3 -g
# .PHONY:run
# run:
# 	./virtualtest
# .PHONY:clean
# clean:
# 	rm -f virtualtest

# messagetest:message_test.cpp ../comm/msg.pb.cc
# 	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3 -g
# .PHONY:run
# run:
# 	./messagetest
# .PHONY:clean
# clean:
# 	rm -f messagetest

# bindtest:bind_test.cpp
# 	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3 -g
# .PHONY:run
# run:
# 	./bindtest
# .PHONY:clean
# clean:
# 	rm -f bindtest

# queuetest:queue_test.cpp
# 	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3
# .PHONY:run
# run:
# 	./queuetest
# .PHONY:clean
# clean:
# 	rm -f queuetest

# exchangetest:exchange_test.cpp
# 	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3
# .PHONY:run
# run:
# 	./exchangetest
# .PHONY:clean
# clean:
# 	rm -f exchangetest

# filetest:file_test.cpp
# 	g++ -o $@ $^ -std=c++11
# .PHONY:run
# run:
# 	./filetest
# .PHONY:clean
# clean:
# 	rm -f filetest
